#include <stdio.h>
#include <string.h>

int main()
{
	char C[20];
	C[0] = 'J';
	C[1] = 'O';
	C[2] = 'H';
	C[3] = 'N';
	C[4] = '\0';
	int len = strlen(C);
	printf("Length = %d\n",len);
}

#include <stdio.h>
#include <string.h>

int main()
{
	char c[] = "JOHN";
	printf("Size in bytes = %d\n",sizeof(c));
	int len = strlen(c);
	printf("Length = %d\n",len);
}

#include <stdio.h>
void print(char* C)
{
	int i = 0;
	while(*(C+i) != '0')
	{
		printf("%c",*C);
		C++;
	}
	printf("\n");
}
int main()
{
	char C[20] = "Hello";
	print(C);
}